package cn.iocoder.yudao.module.erp.controller.admin.monthplaninfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 月度计划新增/修改 Request VO")
@Data
public class MonthPlanInfoSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "23755")
    private Long id;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "计划开始日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "计划开始日期不能为空")
    private LocalDate beginTime;

    @Schema(description = "计划截止日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "计划截止日期不能为空")
    private LocalDate endTime;

    @Schema(description = "上载点", example = "25925")
/*    @NotNull(message = "上载点不能为空")*/
    private Long upId;

    @Schema(description = "下载点", example = "5545")
   /* @NotNull(message = "下载点不能为空")*/
    private Long downloadId;

    @Schema(description = "托运方式", requiredMode = Schema.RequiredMode.REQUIRED  )
    @NotNull(message = "托运方式不能为空")
    private Integer checkType;

    @Schema(description = "托运商")
    private String checkCompany;

    @Schema(description = "管输费", requiredMode = Schema.RequiredMode.REQUIRED, example = "13480")
    @NotNull(message = "管输费不能为空")
    private BigDecimal linePrice;

    @Schema(description = "管线")
    private String lineInfo;

    @Schema(description = "气源")
    private String gasResource;



    @Schema(description = "照付不议系数")
    @NotNull(message = "照付不议系数不能为空")
    private BigDecimal ratio;

    /**
     * 管输总额
     */
    private BigDecimal lineCost;
    /**
     * 管容总量
     */
    @NotNull(message = "管输总量不能为空")
    private BigDecimal capacityTotal;
    /**
     * 每日管容
     */
    private BigDecimal capacityDay;
   /* *//**
     * 已用管容
     *//*
    private BigDecimal capacityUsed;
    *//**
     * 已下载总量
     *//*
    private BigDecimal usedDownCount;
    *//**
     * 已上载总量
     *//*
    private BigDecimal usedUpCount;
    *//**
     * 不平衡
     *//*
    private BigDecimal imbalanceTotal;*/

   /* @Schema(description = "已下载总量", example = "16031")
    private BigDecimal usedSaleCount;

    @Schema(description = "已上载总量", example = "20428")
    private BigDecimal usedBuyCount;*/

    @Schema(description = "销售客户", example = "29465")
    private Long saleCustomerId;

    @Schema(description = "销售单价（元/方）", example = "19351")
    private BigDecimal salePrice;

    @Schema(description = "销售居间额", example = "32054")
    private BigDecimal saleOtherCount;

    @Schema(description = "居间费（元/方）", example = "3240")
    private BigDecimal saleOtherPrice;

    @Schema(description = "销售总量（万方)", example = "24760")
    private BigDecimal saleGasAllCount;

    @Schema(description = "每日数量（万方）", example = "23877")
    private BigDecimal saleSubCount;

    @Schema(description = "销售合同", example = "14909")
    private Long saleContractId;

    @Schema(description = "采购客户", requiredMode = Schema.RequiredMode.REQUIRED, example = "1254")
    @NotNull(message = "采购客户不能为空")
    private Long buyCustomerId;

    @Schema(description = "采购单价（元/方）", requiredMode = Schema.RequiredMode.REQUIRED, example = "18579")
    @NotNull(message = "采购单价（元/方）不能为空")
    private BigDecimal buyPrice;

    @Schema(description = "居间费（元/方）"  )
    private BigDecimal buyOtherPrice;

    @Schema(description = "采购总量（万方）"  )
    private BigDecimal buyGasAllCount;

    @Schema(description = "每日数量（万方）", requiredMode = Schema.RequiredMode.REQUIRED, example = "6014")
/*    @NotNull(message = "每日数量（万方）不能为空")*/
    private BigDecimal buySubCount;

    @Schema(description = "总销售金额（元）", requiredMode = Schema.RequiredMode.REQUIRED, example = "20252")
/*    @NotNull(message = "总销售金额（元）不能为空")*/
    private BigDecimal buyAllCount;

    @Schema(description = "采购合同" )
    private Long buyContractId;

    @Schema(description = "状态"  )
    private Integer status;

    @Schema(description = "备注"  )
    private String remark;

    @Schema(description = "附件" )
    private String fileUrl;

}